<div class="stat-container">
    <button pButton type="button" label="返回" (click)="goBack()"
        style="position: absolute;right: 20px; top: 10px;"></button>
    <div class="stat-container">
        <div class="container-left">
            <p-table [columns]="cols" [value]="items" selectionMode="single" [(selection)]="selectedRecord"
                [scrollable]="true" [alwaysShowPaginator]="'fasle'" [totalRecords]="totalRecords"
                [scrollHeight]="'calc(100vh - 150px)'" [style]="{width:'100%'}" [loading]="loading" [paginator]="true"
                [rows]="30" [lazy]="true" (onLazyLoad)="loadLazy($event)">
                <ng-template pTemplate="header" let-columns>
                    <tr>
                        <th *ngFor="let col of columns" [ngStyle]="col.style">
                            {{col.header}}
                        </th>
                    </tr>
                </ng-template>
                <ng-template pTemplate="body" let-rowData let-columns="columns">
                    <tr [pSelectableRow]="rowData">
                        <td *ngFor="let col of columns" [ngStyle]="col.style">
                            {{rowData[col.field]}}
                        </td>
                    </tr>
                </ng-template>
                <ng-template pTemplate="paginatorleft" let-state>
                    第{{state.page + 1}} / {{state.totalRecords / state.rows | mathceil}}页
                </ng-template>

                <ng-template pTemplate="paginatorright" let-state>
                    共{{state.totalRecords}}条
                </ng-template>
            </p-table>
        </div>
        <div class="container-right">
            <div class="header">{{selectedRecord.yesswNum}}</div>
            <div class="label" style="margin-top:15px;">问题描述</div>
            <div class="content">{{selectedRecord.recordDesc}}</div>
            <div class="label">办理经过</div>
            <div class="content">{{selectedRecord.recordHandleDesc}}</div>
        </div>
    </div>
</div>